<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/9/13
 * Usage: 定义了所有的请求和返回Head
 * Time: 1:17
 */
    class ConnectAPI{
        public static $LOGIN_REQUEST = 0x000001;//登录请求
        public static $LOGIN_RESPONSE = 0x000002;//登陆响应

        public static $BACK_LOGIN_REQUEST = 0x001001;//退出登录请求
        public static $BACK_LOGIN_RESPONSE = 0x001002;//退出登录响应


        public static $RETURN_ONLINE_RESPONSE = 0x001003;//断线重连返回打牌逻辑消息
        public static $RETURN_ONLINE_REQUEST = 0x001004;//断线重连打牌逻辑请求


        public static $OTHER_BACK_LOGIN_RESPONSE = 0x001111;//断线玩家重连之后 其他三家人接收信息

        public static $JOIN_ROOM_REQUEST  = 0x000003;//加入房间请求
        public static $JOIN_ROOM_RESPONSE  = 0x000004;//加入房间响应
        public static $JOIN_ROOM_NOTICE = 0x10a004;//加入房间通知


        public static $SIGNUP_REQUEST = 0x000005;//注册请求?
        public static $SIGNUP_RESPONSE = 0x000006;//注册响应?

        public static $OPENAPP_REQUEST = 0x000007;//打开APP请求？
        public static $OPENAPP_RESPONSE =0x000008;//打开APP响应？

        public static $CREATEROOM_REQUEST = 0x00009;//创建房间请求
        public static $CREATEROOM_RESPONSE = 0x00010;//创建房间响应
            //开始游戏
        public static $STARTGAME_REQUEST = 0x00011;//开始游戏请求
        public static $STARTGAME_RESPONSE = 0x00012;//开始游戏响应
            //解散房间
        public static $DISSOLVE_ROOM_REQUEST  = 0x000113;//解散房间请求
        public static $DISSOLVE_ROOM_RESPONSE  = 0x000114;//解散房间响应
            //退出房间
        public static $OUT_ROOM_REQUEST  = 0x000013;//退出房间请求
        public static $OUT_ROOM_RESPONSE  = 0x000014;//退出房间响应
            //离线通知
        public static $OFF_LINE_RESPONSE  = 0x000015;//离线响应
        public static $ON_LINE_RESPONSE  = 0x000016;//上线响应

            //心跳协议
        public static $head = 0x000030;
        public static $headRESPONSE = 0x000031;

            //出牌
        public static $CHUPAI_REQUEST = 0x100001;//出牌请求
        public static $CHUPAI_RESPONSE = 0x100002;//出牌响应
            //摸牌
        public static $PICKCARD_REQUEST = 0x100003;
        public static $PICKCARD_RESPONSE = 0x100004;
            //碰牌
        public static $PENGPAI_REQUEST = 0x100005;
        public static $PENGPAI_RESPONSE = 0x100006;
            //杠牌
        public static $GANGPAI_REQUEST = 0x100007;
        public static $GANGPAI_RESPONSE = 0x100008;
        public static $OTHER_GANGPAI_NOICE = 0x10a008;
            //胡牌
        public static $HUPAI_REQUEST = 0x100009;
        public static $HUPAI_RESPONSE = 0x100010;
        public static $HUPAIALL_RESPONSE = 0x100110;
    //        //吃
    //    public static $ CHIPAI_REQUEST = 0x100011;
    //    public static $ CHIPAI_RESPONSE = 0x100012;
            //其它人摸牌了
        public static  $OTHER_PICKCARD_RESPONSE = 0x100014;

            //放弃请求
        public static $GAVEUP_REQUEST = 0x100015;
            //有吃碰杠胡需要操作的返回信息/一个房间次数用完之后返回全局信息
        public static $RETURN_INFO_RESPONSE =  0x100000;

            //游戏错误码返回
        public static $ERROR_RESPONSE = 0xffff09;

            //游戏关闭返回
        public static $CLOSE_RESPONSE = 0x000000;

            //后台与前段握手信息返回，(前段接收到信息自后返回，调用接口)
        public static $SUCCESS_RETURN_MSG_REQUEST = 0x111111;
        public static $SUCCESS_RETURN_MSG_RESPONSE = 0x222222;

            //准备游戏
        public static $PrepareGame_MSG_REQUEST = 0x333333;
        public static $PrepareGame_MSG_RESPONSE = 0x444444;
            //退出游戏
        public static $LOGINOUTGAME_MSG_REQUEST = 0x555555;
            //固定语音盒子协议
        public static $MessageBox_Request = 203;
        public static $MessageBox_Notice = 204;
            //玩家房卡变化协议
        public static  $ROOMCARDCHANGER_RESPONSE = 0x777777;

            //抽奖协议
        public static  $DRAw_REQUEST = 0x888888;
        public static  $DRAw_RESPONSE = 0x999999;
            //被跟庄通知
        public static $Game_FollowBanker_Notice = 0x100016;
            //通知前端进行断线操作
        public static $BREAK_LINE_RESPONSE = 0x211211;

            //后台广告链接通知/后台充卡链接通知  公用request  不公用response
        public static $HOST_SEND_REQUEST = 0x158888;
        public static $HOST_SEND_RESPONSE = 0x157777;
            //后台管理官登录获取主页面 信息
        public static $HOST_INDEXINFOS_REQUEST = 0x154444;
        public static $HOST_INDEXINFOS_RESPONSE = 0x153333;

            //app点+号返回充卡联系信息
        public static $HOST_ADDROOMCARD_REQUEST = 0x156666;
        public static $HOST_ADDROOMCARD_RESPONSE = 0x155555;

            //每天充值抽奖信息之后，通知在线玩家
        public static $HOST_UPDATEDRAW_RESPONSE = 0x010111;

            //战绩
        public static $MSG_STANDINGS_REQUEST = 0x002001;//请求
        public static $MSG_STANDINGSSEAREH_REQUEST = 0x002004;//请求房间战绩
        public static $MSG_STANDINGS_RESPONSE = 0x002002;//返回房间战绩
        public static $MSG_STANDINGSDETAIL_RESPONSE = 0x002003;//返回具体某个房间对应的详细每局战绩

            //游戏回放请求
        public static $PLAYRECORD_REQUEST = 0x003001;
        public static $PLAYRECORD_RESPONSE = 0x003002;


            //远程请求
        public static $HOST_ROMOTECONTROL_REQUEST = 0x999999;


    }


?>